/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package towerdefense.data;

import java.awt.image.BufferedImage;

/**
 *
 * @author Flo
 */
public class Tile {

    private String type;
    private BufferedImage tileimg = null;

    public Tile(String type, BufferedImage tileimg) throws Exception {
        if (type.isEmpty()) {
            throw new Exception("Empty type!");
        }
        this.type = type;
        this.tileimg = tileimg;
    }

    public String getType() {
        return type;
    }

    public BufferedImage getTileimg() {
        return tileimg;
    }
}
